package com.wyt.dao;



import com.wyt.entity.ToutstorageDetail;

import java.util.List;

public interface ToutstorageDetailMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ToutstorageDetail record);

    int insertSelective(ToutstorageDetail record);

    ToutstorageDetail selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ToutstorageDetail record);

    int updateByPrimaryKey(ToutstorageDetail record);

    //聚集查询出版社分类及其数量
    List<ToutstorageDetail> findAllByPublisherAndCount();
    //聚集查询书籍类型分类及其数量
    List<ToutstorageDetail> findAllByBookTypeAndCount();

    //聚集查询同种书籍的数量名称
    List<ToutstorageDetail> findAllBookNameAndCount();

}